FaceDetectionModel
class FaceDetectionModel(internalModel: OnnxInferenceModel, modelKindDescription: String?) : FaceDetectionModelBase<BufferedImage> , InferenceModel
Content copied to clipboard
Face detection model implementation.
See also
Constructors
FaceDetectionModel
Link copied to clipboard
fun FaceDetectionModel(internalModel: OnnxInferenceModel, modelKindDescription: String? = null)
Content copied to clipboard
Functions
convert
Link copied to clipboard
open override fun convert(output: OrtSession.Result): List<DetectedObject>
Content copied to clipboard
Converts raw model output to the result.
detectFaces
Link copied to clipboard
fun detectFaces(image: BufferedImage, topK: Int = 5, iouThreshold: Float = 0.5f): List<DetectedObject>
Content copied to clipboard
initializeWith
Link copied to clipboard
open override fun initializeWith(vararg executionProviders: ExecutionProvider)
Content copied to clipboard
Initialize the model with the specified executions providers.
predictSoftly
Link copied to clipboard
open override fun predictSoftly(inputData: FloatArray, predictionTensorName: String): FloatArray
Content copied to clipboard
summary
Link copied to clipboard
Properties
inputDimensions
Link copied to clipboard
internalModel
Link copied to clipboard
modelKindDescription
Link copied to clipboard
preprocessing
Link copied to clipboard
open override val preprocessing: Operation<BufferedImage, Pair<FloatArray, TensorShape>>
Content copied to clipboard